package cn.northsea.service.impl;

import cn.northsea.entity.Seek;
import cn.northsea.entity.SeekUser;
import cn.northsea.mapper.SeekMapper;
import cn.northsea.service.SeekService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;
import java.util.Map;

@Service
public class SeekServiceImpl extends ServiceImpl<SeekMapper, Seek> implements SeekService {
    @Autowired
    SeekMapper seekMapper;

    @Override
    public List<Seek> findAll(String likename) {
        return seekMapper.findAll(likename);
    }

    @Override
    public List<Seek> findAllByJob(String job,String s1,String s2,String s3,String s4,String s5) {
        return seekMapper.findAllByJob(job,s1,s2,s3,s4,s5);
    }

    @Override
    public Seek findAllById(String id) {
        return seekMapper.findAllById(id);
    }

    @Override
    public SeekUser findUserByUid(String id) {
        return seekMapper.findUserByUid(id);
    }

    @Override
    public List<Seek> findAllByUid(String uid) {
        return seekMapper.findAllByUid(uid);
    }

    @Override
    public void addupdate(Seek seek) {
        seekMapper.addupdate(seek);
    }

    @Override
    public List<Seek> findAll1() {
       return seekMapper.findAll1();
    }

    @Override
    public void update1(Integer id) {
        seekMapper.update1(id);
    }
}
